#ifndef FECLOCKWIDGET_H
#define FECLOCKWIDGET_H
#include <QLabel>
#include <QDateTime>

class FeClockWidget: public QLabel
{
	Q_OBJECT
	Q_PROPERTY(QDateTime dateTime READ dateTime WRITE setDateTime)
	Q_PROPERTY(QString format READ format WRITE setFormat)
public:
	FeClockWidget(QWidget *parent=0);
	virtual ~FeClockWidget();

	QDateTime dateTime() const;
	void setDateTime(const QDateTime &);

	QString format() const;
	void setFormat(const QString &);

private:
	void updateText();

private:
	QDateTime dt;
	QString fmt;
};

#endif